cmake_minimum_required(VERSION 3.15)
project(lexer)

set(CMAKE_CXX_STANDARD 11)

file(COPY ${CMAKE_SOURCE_DIR}/lexer/test.txt DESTINATION ${CMAKE_BINARY_DIR}/lexer)
include_directories(${PROJECT_ROOT_DIR})

add_library(lexer STATIC lexer_fsm.cc)
target_link_libraries(lexer PUBLIC common)

add_executable(lexical
    lexical_example.cc
)

target_link_libraries(lexical PRIVATE lexer)